package gxg.com.blog_system.service;

import com.github.pagehelper.PageInfo;
import gxg.com.blog_system.model.domain.Article;

import java.util.List;

public interface IArticleService {

    //根据文章id查询单个文章详情
    public Article selectArticleWithId(Integer id);

    public PageInfo<Article> selectArticleWithPage(Integer page,Integer count);

    public List<Article> getHeatArticle();
    //发布文章
    public void publish(Article article);
    //根据主键更新文章
    public void updateArticleWithId(Article article);
    //删除文章
    public void deleteArticleWithId(int id);
}
